<%@ include file="public/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link type="text/css" rel="stylesheet" href="styles/pub/default.css">
<tr>
	<td>
		<table>
			<caption>
				CIQ审批操作
			</caption>
			<tr><td  style="text-align:center;">
				<table  class="bean">
					<tr class="size">
					  <td width="12%"></td>
					  <td width="29%"></td>
					  <td width="10%"></td>
					  <td width="21%"></td>
					  <td width="10%"></td>
					  <td width="21%"></td>
					</tr>
					<tr>
					  <td class="formLabel">备案号</td>
					  <td>
					  	<c:choose>
					    	<c:when test="${(apply.applyFlag==1&&myfunc:containAny('ROLE_APPLY_CENSOR',map.currentUser.authorityNames))||(apply.applyFlag==4&&myfunc:containAny('ROLE_APPLY_AUDIT',map.currentUser.authorityNames))}">
					  			<input type="text" name="map[applyCode]" value="${apply.applyCode}" size="10">
					  		</c:when>
							<c:otherwise>
							  	${apply.applyCode}
							</c:otherwise>
						 </c:choose>
					  	<input type="button" value=" 检查 " onclick="checkApplyCode(${apply.id})"/>
					  </td>
					  <td class="formLabel" >监管人</td>
					  <td colspan="3">
						<mytag:checkbox name="map[inspectorId]" type="ciqInspector" multiSelect="true"
						 opeation='${(apply.applyFlag==1&&myfunc:containAny("ROLE_APPLY_CENSOR",map.currentUser.authorityNames)||(apply.applyFlag==4&&myfunc:containAny("ROLE_APPLY_AUDIT",map.currentUser.authorityNames)))}'
						 values="${apply.inspectorId}" wrapCount="4" className="noborder inputLeftMargin"/>
					  </td>
					</tr>
					<tr>
					  <td class="formLabel" >审核结果</td>
					  <td>
					  	<mytag:checkbox type="applyCensor" name="censorResult" opeation='${apply.applyFlag==1&&myfunc:containAny("ROLE_APPLY_CENSOR",map.currentUser.authorityNames)}' values="${censor1.censorResult}" className="noborder inputLeftMargin"/>
					  </td>
					  <td class="formLabel" >审核人</td>
					  <td>${censor1.username}</td>
					  <td class="formLabel" >审核时间</td>
					  <td>${myfunc:d2s(censor1.updateDate)}</td>
					</tr>
					<tr>
					  <td class="formLabel">审核意见</td>
					  <td colspan="5">
					  	<c:choose>
					  		<c:when test="${apply.applyFlag==1&&myfunc:containAny('ROLE_APPLY_CENSOR',map.currentUser.authorityNames)}">
					  			<input type="text" name="censorOpinion" value="${censor1.censorOpinion}" size="68">
					  			<input type="hidden" name="censorKind" value="305" />
					  		</c:when>
							<c:otherwise>
							  	${censor1.censorOpinion}
							</c:otherwise>
					  	</c:choose>
					  </td>
					</tr>
					<tr>
					  <td class="formLabel" >审批结果</td>
					  <td>
						  <mytag:checkbox name="censorResult" values="${censor2.censorResult}" type="applyCensor" opeation='${apply.applyFlag==4&&myfunc:containAny("ROLE_APPLY_AUDIT",map.currentUser.authorityNames)}' className="noborder inputLeftMargin"/>
					  </td>
					  <td class="formLabel" >审批人</td>
					  <td>${censor2.username}</td>
					  <td class="formLabel" >审批时间</td>
					  <td>${myfunc:d2s(censor2.updateDate)}</td>
					</tr>
					<tr>
					  <td class="formLabel">审批意见</td>
					  <td colspan="5">
					  	<c:choose>
					  		<c:when test="${apply.applyFlag==4&&myfunc:containAny('ROLE_APPLY_AUDIT',map.currentUser.authorityNames)}">
					  			<input type="text" name="censorOpinion" value="${censor2.censorOpinion}" size="68">
					  			<input type="hidden" name="censorKind" value="307" />
					  		</c:when>
							<c:otherwise>
							  	${censor2.censorOpinion}
							</c:otherwise>
					  	</c:choose>
					  </td>
					</tr>
					<tr>
					  <td class="formLabel">不获批原因</td>
					  <td colspan="5">
					    <c:choose>
					    	<c:when test="${(apply.applyFlag==1&&myfunc:containAny('ROLE_APPLY_CENSOR',map.currentUser.authorityNames))||(apply.applyFlag==4&&myfunc:containAny('ROLE_APPLY_AUDIT',map.currentUser.authorityNames))}">
					  			<input type="text" name="map[reason]" value="${apply.reason}" size="68">&nbsp;(代理企业可见)
					  		</c:when>
							<c:otherwise>
							  	${apply.reason}
							</c:otherwise>
						 </c:choose>
					  </td>
					</tr>
				</table>
			</td></tr>
		</table>
	</td>
</tr>